package com.bms.cfcmms.util.scheduler;

import org.quartz.SchedulerException;
import org.quartz.Trigger;
import org.quartz.listeners.SchedulerListenerSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by carl on 2016/6/8.
 */
public class AuditSchedulerListeners extends SchedulerListenerSupport {

    private static final Logger log = LoggerFactory.getLogger(AuditSchedulerListeners.class);

    @Override
    public void schedulerError(String string, SchedulerException exception) {
        log.error("任务调度器出现了异常。");
    }

    @Override
    public void jobScheduled(Trigger trigger) {
        log.error("任务调度器出现了异常。");
    }
}
